package com.hhxyjsj.factory.abstracts;

import com.hhxyjsj.factory.INotebook;

/**
 * 抽象工厂测试类
 * 
 * @author Puhui
 *
 */
public class AbstractFactoryTest {
	
	public static void main(String[] args) {
		INotebookAbstractFactory factory = new DellNotebookFactory();
		INotebook notebook = factory.getInstance();
		notebook.produce();
		
		factory = new LenovoNotebookFactory();
		notebook = factory.getInstance();
		notebook.produce();
	}

}
